package com.stylefeng.guns.rest.common.persistence.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 红包评论点赞表
 * </p>
 *
 * @author ruiyifeng123
 * @since 2018-07-09
 */
@TableName("wz_redpacket_comment_like")
public class WzRedpacketCommentLike extends Model<WzRedpacketCommentLike> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 新闻id
     */
    @TableField("adv_id")
    private Long advId;
    /**
     * 用户评论id
     */
    @TableField("redpacket_comment_id")
    private Long redpacketCommentId;
    /**
     * 用户编号
     */
    @TableField("user_code")
    private Long userCode;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getAdvId() {
        return advId;
    }

    public void setAdvId(Long advId) {
        this.advId = advId;
    }

    public Long getRedpacketCommentId() {
        return redpacketCommentId;
    }

    public void setRedpacketCommentId(Long redpacketCommentId) {
        this.redpacketCommentId = redpacketCommentId;
    }

    public Long getUserCode() {
        return userCode;
    }

    public void setUserCode(Long userCode) {
        this.userCode = userCode;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "WzRedpacketCommentLike{" +
        "id=" + id +
        ", advId=" + advId +
        ", redpacketCommentId=" + redpacketCommentId +
        ", userCode=" + userCode +
        ", createTime=" + createTime +
        "}";
    }
}
